﻿using System.Collections.Generic;
using ZilLion.Service.TaskPlatform.Domain.Entity;

namespace ZilLion.Service.TaskPlatform.Domain.Respository.Interface
{
    public interface INodePerformanceMonitorRespository
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="entity"></param>
        void AddPerformanceMonitorInfo(NodePerformanceMonitorEntity entity);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="entity"></param>
        void MotifyPerformanceMonitorInfo(NodePerformanceMonitorEntity entity);
        /// <summary>
        /// 获取所有节点的性能信息
        /// </summary>
        /// <returns></returns>
        IEnumerable<NodePerformanceMonitorEntity> GetAllNodeMonitorInfo();
        /// <summary>
        /// 获取对应节点ID 的性能监控信息
        /// </summary>
        /// <param name="nodeid"></param>
        /// <returns></returns>
        NodePerformanceMonitorEntity GetNodeMonitorInfoById(string nodeid);
    }
}